package com.weiyuwqj.api.service;

import com.weiyuwqj.api.common.Paginator;
import com.weiyuwqj.api.model.BusAccountBank;
import com.weiyuwqj.api.model.vo.BusAccountBankVo;
import com.weiyuwqj.api.base.BaseService;
import com.weiyuwqj.api.common.PageList;
//import com.weiyuwqj.api.hengfeng.param.HfPayMemberCard;

import java.util.List;
import java.util.Map;

public interface BusAccountBankService extends BaseService<BusAccountBank> {


    PageList getList(Paginator p, Map<String, Object> param);

    List<BusAccountBankVo> getList(Map<String, Object> param);

    BusAccountBankVo getSingle(Map<String, Object> param);

    //根据用户id查询银行卡信息
    List<BusAccountBankVo> getBankByUserId(Integer userId);

    List<BusAccountBankVo> excelList(Map<String, Object> param);

    Integer updateBankStatus(Map map);

    BusAccountBank getOneByCardNo(String cardNo);

    BusAccountBank getOneByUserIdAndStatus(Map map);

    BusAccountBank getOneByUserId(Integer userId);

    /**
     * 更改银行卡
     * @param newCardNo   新卡号
     * @param mobile      预留手机号码
     * @param bankName    银行名称
     * @param userId      用户id
     * @return
     */
    void changeCard(String newCardNo,String mobile,String bankName,Integer userId);

}
